import {ChangeDetectionStrategy, Component, Input, Output, OnInit, EventEmitter} from '@angular/core';
import {SongSheet} from '../../../../data-types/common.types';

@Component({
  selector: 'app-single-sheet',
  templateUrl: './single-sheet.component.html',
  styleUrls: ['./single-sheet.component.less'],
  changeDetection: ChangeDetectionStrategy.OnPush
})
export class SingleSheetComponent implements OnInit {

  @Input() songSheet: SongSheet;

  @Output() playEvent = new EventEmitter<number>();

  constructor() {
  }

  ngOnInit(): void {
  }

  playSheet(id: number) {
    this.playEvent.emit(id);
  }

}
